package bytescode;

import java.nio.charset.Charset;

public class CharByteCode {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		
		
	    String temp = "ѧjava";;

	    System.out.println("default byte code: "+temp.getBytes().length+"  "+Charset.defaultCharset().toString());
	    System.out.println("unicode :"+temp.getBytes("UNICODE").length);
	    System.out.println("utf-8 :"+temp.getBytes("UTF-8").length);
	    System.out.println("utf-16 :"+temp.getBytes("UTF-16").length);
	}

}
